package com.clz.hyperit.service;

import java.util.List;

import com.clz.hyperit.entity.Article;
import com.clz.hyperit.entity.Comment;
import com.clz.hyperit.entity.Report;
import com.clz.hyperit.entity.UserDetail;
import com.clz.hyperit.vo.GetComment;
import com.clz.hyperit.vo.PageInfo;
import com.clz.hyperit.vo.ReportVo;



public interface BlogService {
	//按照要求排列出所有博客
	public List<UserDetail> getBlogs(Integer rank, Integer field,PageInfo pageInfo);
	//收藏
	public Integer saveCollect(Integer userdetail_id, Article article, Integer type);
	//取消收藏
	public void deleteCollect(Integer userdetail_id, Integer id,
			Integer type);
	//关注
	public Integer saveFollow(Integer userdetail_id, Integer target_id);
	//取消关注
	public void deleteFollow(Integer userdetail_id, Integer target_id);
	//打赏 更新HB
	public int updateReward(Integer userdetail_id, Integer target_id);
	//举报
	public void saveReport(Report report);
	//评论
	public Comment saveComment(Comment comment);
	//获取评论信息
	public List<Comment> getCommentList(PageInfo pageInfo, Integer target_id,
			Integer userdetail_id);
	//获取用户信息
	public UserDetail getCommentUserInfo(Integer userDetail_id);
	//获取所关注的用户的列表
	public List<UserDetail> getFollowUserDetail(Integer userdetail_id);
	//删除评论
	public int deleteComment(Integer userdetail_id, Integer comment_id);
	//获取举报列表
	public List<ReportVo> getReport();
	//获取收藏
	public List getCollection(Integer userdetail_id, Integer type, PageInfo pageInfo);
	//判断是否关注关系
	public boolean isfollow(Integer userdetail_id, Integer targer_id);
}
